Api.EnableAutoConfig 方法

允許啟用自動配置,自動為伺服驅動器配置 EtherCAT 設定。

命名空間IntervalZero.KINGSTAR.Local.Api

組合: IntervalZero.KINGSTAR.Local.Api (於 IntervalZero.KINGSTAR.Local.dll) 版本:4.4.0.0

語法

C#VB
public KsError EnableAutoConfig(
       bool Active
)
Public Function EnableAutoConfig(
       Active As Boolean
) As KsError

參數

Active

型別:bool

true:啟用自動配置;false:停用自動配置。預設為 true

回傳值

型別:KsError

方法的回傳代碼。

備註

此方法須在 CreateCreateAsync 後及 Start 前呼叫。

可用的 EtherCAT 狀態

ecatOffline

範例

C#
N/A

參見

Api 類別

IntervalZero.KINGSTAR.Local.Api 命名空間